package com.zp.demo.repush.vo;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

import java.util.Map;

@ConfigurationProperties(
        prefix = "repush"
)
//@PropertySource(value = {"classpath:/repush.yml"},
//        ignoreResourceNotFound = true,encoding = "utf-8")
@Component
@Data
public class RePushProperties {
    public static final String SUCESS_ONCE_KEY = "SUCESS_ONCE_KEY";
    /**
     * 扫码的根路径
     */
    private String scanBasePack;
    /**
     * 仅仅成功一次 判断周期
     */
    private Integer sucessOnceSleepTime = 24*60*60*1000;
    /**
     * 开启全局 重复验证 ，防接口提交重复和重推的重复
     */
    //private Boolean sucessOnceStart = false;
    /**
     * 定时任务
     */
    private ScheduledProperties scheduled;
    private Map<String,RePushStrategyEntity> strategy;

}
